package com.twu.biblioteca;

import java.io.PrintStream;


public class Book {
    PrintStream ps;
    String title;

    Book(String title, PrintStream ps){
        this.title = title;
        this.ps = ps;
    }
    Book(String title){
        this(title, System.out);
    }

    public void print() {
        ps.println(title);
    }

    public boolean isTitle(String string){
        return string.equals(title) ? true : false;
    }

    public boolean checkOut(){
        return true;
    }
}
